/*
 * @Description: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2021-09-26 14:18:44
 * @LastEditors: ziwei
 * @LastEditTime: 2021-09-26 17:18:45
 */
export function forEachValue(obj,fn) {
  Object.keys(obj).forEach(key=>fn(obj[key],key))
}

export function isPromise(val) {
  return val && typeof val.then === 'funtion'
}